<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="../assets/css/movielist.css">
</head>

<body>

    <div class="layui-card">
        <div class="layui-card-header">
            <span>电影列表管理</span>
        </div>
        <div class="layui-card-body">
            <form class="layui-form" id="search">
                <div class="layui-form-item layui-inline">
                    <select name="cate_id">
                       
                    </select>
                </div>

                <div class="layui-form-item layui-inline">
                    <select name="state" id="search_state">
                            <option value="">所有状态</option>
                            <option value="已上映">已上映</option>
                            <option value="预售">预售</option>
                        </select>
                </div>


                <div class="layui-form-item layui-inline">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">筛选</button>
                </div>
            </form>

            <table class="layui-table">
                <colgroup>
                    <col />
                    <col width="150" />
                    <col width="200" />
                    <col width="150" />
                    <col width="150" />
                </colgroup>
                <thead>
                    <tr>
                        <th>电影名称</th>
                        <th>电影分类</th>
                        <th>发布时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>


            <div id="pagelist"></div>

        </div>
    </div>

    <script type="text/html" id="tql-list">
        {{each data}}
        <tr>
            <th>{{$value.tittle}}</th>
            <th>{{$value.cate_id}}</th>
            <th>{{$value.date|dateFormat}}</th>
            <th>{{$value.state}}</th>
            <th>
                <button class="layui-btn layui-btn-xs" id="" data-id={{$value.id}}>编辑</button>
                <button class="layui-btn layui-btn-danger layui-btn-xs" id="" data-id={{$value.id}}>删除</button>
            </th>
        </tr>
        <!-- <div class="container">
            <div class="movie_item">
                <img src={{$value.cover_img}} id="movie_cover">
                <span>{{$value.tittle}}</span>
                <label>{{$value.date|dateFormat}}</label>
            </div>
        </div> -->
        {{/each}}

    </script>

    <script type="text/html" id="tql-cate">
        <option value="">所有分类</option>
        {{each}}
        <option value="{{$value.id}}">{{$value.name}}</option>
        {{/each}}
    </script>

    <script src="../assets/lib/layui/layui.all.js"></script>
    <script src="../assets/lib/jquery.js"></script>
    <script src="../assets/js/baseAPI.js"></script>
    <script src="../assets/lib/template-web.js"></script>
    <script src="../assets/js/movielist.js"></script>


</body>

</html>